package icu.zhhll.util.codec;

import java.security.MessageDigest;

/**
 * MD5加密
 *
 * @author zh
 * @date 2023/7/27 16:25
 */
public class MD5Utils extends BaseDigest {

    /**
     * 加密
     *
     * @param content
     * @return
     */
    public static String encrypt(String content) {
        MessageDigest m = getInstance("MD5");
        if (m == null) {
            throw new CodecException("不支持MD5算法");
        }
        return encrypt(m, content);

    }


}
